DEBUG=-g
SOURCE_FILES=PluginManager.cpp ViewerProtocolFactory.cpp ClientProtocolFactory.cpp \
TcpSocketViewerProtocol.cpp ClientTCP.cpp QSocketViewerProtocol.cpp \
ElementData.cpp SdlSocketViewerProtocol.cpp \
Logger.cpp
PAL_OPTS=-I/proj/pal/pal/pal -I/proj/pal/pal/pal/pal -L/proj/pal/pal/pal/lib64 -lpal
QT_OPTS=-I/usr/include/qt4 -I/usr/include/qt4/QtCore -lQtCore  -I/usr/include/qt4/QtNetwork -lQtNetwork -I/usr/include/SDL -lSDL -lSDL_net
OUTPUT=common.o

all:${OUTPUT}

${OUTPUT}: ${SOURCE_FILES}
	g++ -shared -fPIC ${DEBUG} ${PAL_OPTS} ${QT_OPTS} -ldl ${SOURCE_FILES} -o ${OUTPUT}

clean:
	rm -f ${OUTPUT}

re: clean all

.PHONY: all clean re
